package com.legsem.voltdb.test.server;

import java.io.File;

import org.voltdb.compiler.VoltProjectBuilder;

/**
 * For testing purposes, this dummy builder bypasses catalog compilation which
 * was done by maven. This is needed to keep LocalSingleProcessServer happy.
 * 
 */
public class DummyVoltProjectBuilder extends VoltProjectBuilder {

	@Override
	public boolean compile(final String jarPath, final int sitesPerHost,
			final int hostCount, final int replication,
			final String leaderAddress) {
		return true;
	}

	@Override
	public File getPathToVoltRoot() {
		return new File("/tmp/" + System.getProperty("user.name"));
	}

	@Override
	public String getPathToDeployment() {
		return "deployment.xml";
	}

}
